package org.lb.MarketingSystem.service;

import java.util.List;

import org.lb.MarketingSystem.entity.CompanyUser;

public interface CompanyUserService {
	public CompanyUser getCompanyUser(String accountnumber,String password);  //根据账号和密码和密码单个用户
	public List<CompanyUser> get_allCompanyUser();  //得到所有员工信息
	public void updateCompanyUser(CompanyUser companyUser); //修改员工表员工信息
	public void deleteCompanyUser(Integer userId);  //删除员工
	public CompanyUser addCompanyUser(CompanyUser companyUser);   //添加员工
	public List<CompanyUser> getCompanyUserByName(String name);    //根据员工姓名查询员工信息
	public List<CompanyUser> getCompanyUserBySalary(double salary1,double salary2);  //根据员工工资得到员工信息
	public List<CompanyUser> getCompanyUserByDepartmentName(String departmentName);  //根据部门得到员工信息
	public List<CompanyUser> getCompanyUserByPositionName(String positionName);  //根据职位得到员工信息
	public CompanyUser getCompanyUserById(Integer userId);   //根据用户ID得到用户信息
	public CompanyUser prefectedCompanyuser(CompanyUser companyUser);   //赋予员工表用户职位和部门
	public CompanyUser getCompanyUserByAccount(String accountnumber); // 根据员工账号得到信息
	public List<CompanyUser> getCompanyuserByPage(Integer pagenum,Integer number);    //根据页数得到不同条数数据
	public Integer getCounts();  //总的条数
	public Integer getpagenumbers(Integer counts,Integer num);//得出总页数
}
